package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ElectronicFenceMapper;
import com.ruoyi.system.domain.ElectronicFence;
import com.ruoyi.system.service.IElectronicFenceService;

/**
 * fenceService业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-25
 */
@Service
public class ElectronicFenceServiceImpl implements IElectronicFenceService 
{
    @Autowired
    private ElectronicFenceMapper electronicFenceMapper;

    /**
     * 查询fence
     * 
     * @param electronicId fence主键
     * @return fence
     */
    @Override
    public ElectronicFence selectElectronicFenceByElectronicId(Long electronicId)
    {
        return electronicFenceMapper.selectElectronicFenceByElectronicId(electronicId);
    }

    /**
     * 查询fence列表
     * 
     * @param electronicFence fence
     * @return fence
     */
    @Override
    public List<ElectronicFence> selectElectronicFenceList(ElectronicFence electronicFence)
    {
        return electronicFenceMapper.selectElectronicFenceList(electronicFence);
    }

    /**
     * 新增fence
     * 
     * @param electronicFence fence
     * @return 结果
     */
    @Override
    public int insertElectronicFence(ElectronicFence electronicFence)
    {
        return electronicFenceMapper.insertElectronicFence(electronicFence);
    }

    /**
     * 修改fence
     * 
     * @param electronicFence fence
     * @return 结果
     */
    @Override
    public int updateElectronicFence(ElectronicFence electronicFence)
    {
        return electronicFenceMapper.updateElectronicFence(electronicFence);
    }

    /**
     * 批量删除fence
     * 
     * @param electronicIds 需要删除的fence主键
     * @return 结果
     */
    @Override
    public int deleteElectronicFenceByElectronicIds(Long[] electronicIds)
    {
        return electronicFenceMapper.deleteElectronicFenceByElectronicIds(electronicIds);
    }

    /**
     * 删除fence信息
     * 
     * @param electronicId fence主键
     * @return 结果
     */
    @Override
    public int deleteElectronicFenceByElectronicId(Long electronicId)
    {
        return electronicFenceMapper.deleteElectronicFenceByElectronicId(electronicId);
    }
}
